package com.singbon.server.dao;
import com.singbon.server.pojo.AuthgroupUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
/**
 * The interface Authgroupuser mapper.
 */
@Mapper
public interface AuthgroupuserMapper {
  /**
   * Delete by primary key int.
   *
   * @param id the id
   * @return the int
   */
  int deleteByPrimaryKey(Integer id);
  /**
   * Insert int.
   *
   * @param record the record
   * @return the int
   */
  int insert(AuthgroupUser record);
  /**
   * Insert selective int.
   *
   * @param record the record
   * @return the int
   */
  int insertSelective(AuthgroupUser record);
  /**
   * Select by primary key authgroup user.
   *
   * @param id the id
   * @return the authgroup user
   */
  AuthgroupUser selectByPrimaryKey(Integer id);
  /**
   * Update by primary key selective int.
   *
   * @param record the record
   * @return the int
   */
  int updateByPrimaryKeySelective(AuthgroupUser record);
  /**
   * Update by primary key int.
   *
   * @param record the record
   * @return the int
   */
  int updateByPrimaryKey(AuthgroupUser record);
  /**
   * List by user id list.
   *
   * @param operId the oper id
   * @return the list
   */
  @Select("select * from authgroupuser where operId=#{operId,jdbcType=INTEGER}")
  List<AuthgroupUser> listByUserId(Integer operId);
}
